﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true"
    CodeFile="WIN14_1S.aspx.cs" Inherits="IFRS_WIN14_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div align="center" class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblDATE_TRANSACTION" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtDATE_TRANSACTION" CssClass="datepicker" SkinID="dateText" runat="server"
                                onblur="datebox_onblur( this, event );"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblDATA_TYPE" runat="server" Text="<%$Resources:ifrsField,DATA_TYPE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlDATA_TYPE" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblSourceData" runat="server" Text="<%$Resources:ifrsField,SourceData%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlSourceData" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblAccountNo_ContractNumber" runat="server" Text="<%$Resources:ifrsField,AccountNo_ContractNumber	%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtAccountNo_ContractNumber" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblTypeOfCost_Income" runat="server" Text="<%$Resources:ifrsField,TypeOfCost_Income%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlTypeOfCost_Income" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                        </div>
                        <div class="colinfo_single">
                        </div>
                    </div>
                </div>
                <div class="colbtn">
                    <div>
                        <div>
                            <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>"
                                OnClick="btnSEARCH_Click" />&nbsp;
                            <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>"
                                OnClick="btnCLEAR_Click" />
                            &nbsp;
                            <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>"
                                OnClick="btnCANCEL_Click" />
                            &nbsp;
                        </div>
                    </div>
                </div>
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,ADD%>"
                    OnClick="btnAdd_Click" />
            </div>
            <div class="content_grid">
                <asp:GridView ID="gvSearch" runat="server" AllowSorting="true" CssClass="CSSTableGenerator"
                    AutoGenerateColumns="false" AllowPaging="true" PageSize="10" OnRowDataBound="gvSearch_RowDataBound"
                    OnSorting="gvSearch_Sorting">
                    <Columns>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%#Container.DataItemIndex+1%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="FeeAndCostID" Visible="false" />
                        <asp:TemplateField SortExpression="TransactionDate" HeaderText="<%$Resources:ifrsField,DATE_TRANSACTION%>">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:Label ID="lblgvTransactionDate" runat="server" Text='<%# Eval("TransactionDate", "{0:dd/MM/yyyy}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="DataType" HeaderText="<%$Resources:ifrsField,DATA_TYPE%>">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                       <asp:Label ID="lblgvDataType" runat="server" Text='<%# Eval("DataType") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="SOURCEDATANAME" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,SOURCEDATA%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvSOURCEDATANAME" runat="server" Text='<%# Eval("SOURCEDATANAME") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="ACCOUNTNO" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,ACCOUNTNO%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvACCOUNTNO" runat="server" Text='<%# Eval("ACCOUNTNO") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                           <asp:TemplateField SortExpression="ACCOUNTNO" ItemStyle-HorizontalAlign="Left"
                            HeaderText="<%$Resources:ifrsField,TypeOfCost_Income%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvFEEANDCOSTTYPENAME" runat="server" Text='<%# Eval("FEEANDCOSTTYPENAME") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                                <asp:TemplateField SortExpression="AMOUNT" ItemStyle-HorizontalAlign="Right" HeaderText="<%$Resources:ifrsField,TypeOfCost_Amount%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvAMOUNT" runat="server" Text='<%# Eval("AMOUNT","{0:N}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                    OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField  ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                    OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                    OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                    OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>
